﻿<%@ Page Title="Sylvain Analytics, Inc." Language="C#" MasterPageFile="~/Menu.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">


<script type="text/javascript">
    $(document).ready(function () {
        if ($('#divLeft').height() > $('#divRight').height()) {
            document.getElementById('divRight').style.height = $('#divLeft').height() + 'px';
        }
    });
//    $(document).ready(function () {

//        var z = $(".textLimit");
//        //var maxL=10;

//        var j = document.getElementById("MainContent_lblPressRelease").innerHTML;

//        var c = "";

//        for (i = 1; i < j.length; i++) {

//            if (i == 270) {
//                j=j.substring(0, i);

//                j=j.substring(0, j.lastIndexOf(" "));

//                //c = z.html();


//                document.getElementById("MainContent_lblPressRelease").innerHTML=j + "...";
//            }

//            //z=z.substring(0,z.lastIndexOf(" "));

//        }
//    });



</script>


    <div>

    <div data-speed="20000" data-gap="60" data-direction="left" class='marquee' 
            style="overflow: hidden;width:837px; height:40px; margin:5px 20px 20px 78px;float:left;">
            <asp:Label ID="lblQuote" runat="server" Text='<%# Eval("Description") %>' ForeColor="#3A6F89" Font-Bold="true" Font-Size="13" Style="overflow: hidden;"></asp:Label>
            </div>
         <div class="cl">
                </div>
        <div class="leftcontainer-home" id="divLeft">
            <div id="leftDiv" class="LeftSection" runat="server">
                <div class="LeftSection-top">
                </div>
                <asp:Label ID="lblError" runat="server" Visible="false"></asp:Label>
                
              <asp:ImageButton ID="btn" AlternateText="  " runat="server" Width="0" Height="0" />
                <span id="spanDetails" runat="server" style="padding-top: 8px"></span>
            </div>
        </div>

        

        <!-- Right Section-->
       
        <div class="RightSection-home" id="divRight">

            <%--<div style="width:290px; height:40px; margin:5px 5px 20px 15px;" align="center" valign="middle">--%>
            <%--<marquee scrollamount="4" style="padding-left:10px; padding-right:30px"><asp:Label ID="lblQuote" runat="server" Text='<%# Eval("Description") %>' ForeColor="#3A6F89" Font-Bold="true" Font-Size="13" Style="overflow: hidden;"></asp:Label></marquee>--%>
            <%--</div>--%>
            <div class="boxEvents">
                <div class="boxEvents-top">
                    News</div>
                <div class="text ellipsis" style="padding-left:19px">
                    <asp:Label ID="lblNews" runat="server" Height="98%" Text='<%# Eval("Description") %>' Style="overflow: hidden;font-size:12px"></asp:Label>
                </div>
                <asp:ImageButton ID="imgNews" runat="server" ImageUrl="Images/Homepage_green_learn_btn.png"
                    OnClick="imgNews_Click" />
                <div class="cl">
                </div>
            </div>
            <div class="boxEventsGray">
                <div class="boxEventsGray-top">
                    Press Release</div>
                <div class="text ellipsis" style="padding-left:19px">
                    <asp:Label ID="lblPressRelease" Height="98%" runat="server" Text='<%# Eval("Description") %>'
                        Style="overflow: hidden;font-size:12px"></asp:Label>
                </div>
                <asp:ImageButton ID="imgPressRelease" runat="server" ImageUrl="Images/Homepage_white_learn_btn.png"
                    OnClick="imgPressRelease_Click" />
                <div class="cl">
                </div>
            </div>
            <%--<div class="boxEvents">
                <div class="boxEvents-top">
                    Quote</div>
                <div class="text ellipsis">
                    <asp:Label ID="lblQuote" runat="server" Height="98%" Text='<%# Eval("Description") %>' Style="overflow: hidden;"></asp:Label>
                </div>
                <asp:ImageButton ID="imgQuote" runat="server" ImageUrl="Images/btn_learnmore.png"
                    OnClick="imgQuote_Click" />
                <div class="cl">
                </div>
            </div>--%>
        </div>

        
    
    </div>

    
<script type='text/javascript' src="Scripts/jquery.marquee.js"></script>

<script type='text/javascript'>//<![CDATA[
    $(window).load(function () {
        $(function () {
            $('.marquee').marquee();
        });
    });//]]>  

</script>
</asp:Content>
